home *** CD-ROM | disk | FTP | other *** search
- /* $VER: HTMLEXT Modul: ibrowse.mod V 018 by Juan Manuel Wehrli 1999 - 2000
- */
-
- if ~show("L",rexxtricks.library) then do
- call addlib("rexxtricks.library",0,-30,0)
- end
-
- PARSE ARG Befehl File
- OPTIONS RESULTS
- ADDRESS COMMAND
-
- if Befehl = QUIT then do
- if show('P',"IBROWSE") then do
- ADDRESS "IBROWSE" QUIT
- end
- exit
- end
-
- if Befehl = OPEN then do
- if ~show('P',"IBROWSE") then do
- 'Run <>NIL: ibrowse:ibrowse CONFIGDIR ibrowse:htmlext/'
- "sys:rexxc/waitforport IBROWSE"
- end
- File = STRIP(File,,'"')
- File = COMPRESS(File)
- if File ~= "" then do
- preview = 't:htmlext/preview.htm'
- if open('f',preview,'w') then do
- call writeln('f','<HTML><HEAD><TITLE>HTMLEXT Preview</TITLE></HEAD>')
- call writeln('f','<FRAMESET ROWS=20,* FRAMEBORDER="0" BORDER="0" FRAMESPACING=0>')
- call writeln('f','<FRAME NAME="fstop" SRC="file://localhost/htmlext:data/preview/metertoppx.htm" MARGINHEIGHT=0 MARGINWIDTH=0 SCROLLING=NO NORESIZE>')
- call writeln('f','<FRAMESET COLS=20,* FRAMEBORDER="0" BORDER="0" FRAMESPACING=0>')
- call writeln('f','<FRAME NAME="fsleft" SRC="file://localhost/htmlext:data/preview/meterleftpx.htm" MARGINHEIGHT=0 MARGINWIDTH=0 SCROLLING=NO NORESIZE>')
- call writeln('f','<FRAME NAME="htprev" SRC="file://localhost/' || File || '" MARGINHEIGHT=0 MARGINWIDTH=0 SCROLLING=AUTO NORESIZE>')
- call writeln('f','</FRAMESET></FRAMESET><BODY></BODY></HTML>')
- call close('f')
- ADDRESS IBROWSE GOTOURL '"file://localhost/' || preview || '"'
- end
- end
- exit
- end
-
-
- if Befehl = OPENNEW then do
- DIR = GETENV(.htmlext.tmp)
- if ~show('P',"IBROWSE") then do
- 'Run <>NIL: ibrowse:ibrowse CONFIGDIR ibrowse:htmlext/'
- "sys:rexxc/waitforport IBROWSE"
- end
- File = STRIP(File,,'"')
- File = COMPRESS(File)
- if File ~= "" then do
- ADDRESS "IBROWSE" NEWWINDOW
- ADDRESS "IBROWSE" GOTOURL '"file://localhost/' || File || '"'
- end
- exit
- end
-
- if Befehl = OPENURL then do
- if ~show('P',"IBROWSE") then do
- 'Run <>NIL: ibrowse:ibrowse CONFIGDIR ibrowse:htmlext/'
- "sys:rexxc/waitforport IBROWSE"
- end
- File = STRIP(File,,'"')
- File = COMPRESS(File)
- if File ~= "" then do
- ADDRESS "IBROWSE" GOTOURL File
- end
- exit
- end
-
- if Befehl = ICONIFY then do
- if show('P',"IBROWSE") then do
- ADDRESS "IBROWSE" HIDE
- end
- exit
- end
-
- if Befehl = UNICONIFY then do
- if show('P',"IBROWSE") then do
- ADDRESS "IBROWSE" SHOW
- end
- exit
- end
-
- if Befehl = START then do
- if ~show('P',"IBROWSE") then do
- 'Run <>NIL: ibrowse:ibrowse CONFIGDIR ibrowse:htmlext/'
- "sys:rexxc/waitforport IBROWSE"
- "wait 2"
- end
- File = STRIP(File,,'"')
- File = COMPRESS(File)
- if File ~= "" then do
- preview = 't:htmlext/preview.htm'
- if open('f',preview,'w') then do
- call writeln('f','<HTML><HEAD><TITLE>HTMLEXT Preview</TITLE></HEAD>')
- call writeln('f','<FRAMESET ROWS=20,* FRAMEBORDER="0" BORDER="0" FRAMESPACING=0>')
- call writeln('f','<FRAME NAME="fstop" SRC="file://localhost/htmlext:data/preview/metertoppx.htm" MARGINHEIGHT=0 MARGINWIDTH=0 SCROLLING=NO NORESIZE>')
- call writeln('f','<FRAMESET COLS=20,* FRAMEBORDER="0" BORDER="0" FRAMESPACING=0>')
- call writeln('f','<FRAME NAME="fsleft" SRC="file://localhost/htmlext:data/preview/meterleftpx.htm" MARGINHEIGHT=0 MARGINWIDTH=0 SCROLLING=NO NORESIZE>')
- call writeln('f','<FRAME NAME="htprev" SRC="file://localhost/htmlext:data/preview/blank.htm" MARGINHEIGHT=0 MARGINWIDTH=0 SCROLLING=AUTO NORESIZE>')
- call writeln('f','</FRAMESET></FRAMESET><BODY></BODY></HTML>')
- call close('f')
- ADDRESS "IBROWSE"
- GOTOURL '"file://localhost/' || preview || '"'
- end
- end
- exit
- end
-
-